//
//  FirHeadView.m
//  League
//
//  Created by 博宇 李 on 2018/1/23.
//  Copyright © 2018年 ciyuanjuzhen. All rights reserved.
//

#import "FirHeadView.h"
#import "BaseViewController.h"
@implementation FirHeadView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.frame=frame;
        self.backgroundColor = [UIColor whiteColor];
        [self setupUI];
    }
    return self;
}
-(void)setupUI
{
    self.centerImageV = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.width/5, self.height/1.5)];
    self.centerImageV.center=CGPointMake(self.width/2, self.height-self.centerImageV.height/2);
//    self.centerImageV.backgroundColor = [UIColor redColor];
    self.centerImageV .image = [UIImage imageNamed:@"firHeadCenter"];
    
    [self addSubview:self.centerImageV];
    
    self.rightImageV = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.height/2, self.height/2)];
    self.rightImageV.center = CGPointMake(self.width-self.rightImageV.width-2, self.height-self.rightImageV.height/2-2);
//    self.rightImageV.backgroundColor = [UIColor redColor];
    self.rightImageV .image = [UIImage imageNamed:@"firHeadRight"];
    [self addSubview:self.rightImageV];
}
@end
